package com.ruoyi.order.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

/**
 * Created by juzhenxing 2020/2/28 23:20
 */
@Data
public class DisinfectionReportExportVO {

    private String companyName;

    private Date createTimeStart;

    private Date createTimeEnd;

    private List<ProcessProjectFirst> processProjectFirstList;

    @Data
    public static class ProcessProjectFirst {

        private String name;

        /**
         * 批次
         */
        private Integer totalOrderQuantity;

        /**
         * 处理量
         */
        private Double totalProcessQuantity;

        /**
         * 货物量
         */
        private Double totalGoodsQuantity;

        private TreeMap<String, BigDecimal> totalMedicationMap;

        private List<ProcessProjectSecond> processProjectSecondList;

        @Data
        public static class ProcessProjectSecond {

            private String name;

            /**
             * 批次
             */
            private Integer subTotalOrderQuantity;

            /**
             * 处理量
             */
            private Double subTotalProcessQuantity;

            /**
             * 货物量
             */
            private Double subTotalGoodsQuantity;

            private TreeMap<String, BigDecimal> subTotalMedicationMap;

            private List<ProcessObject> processObjectList;

            @Data
            public static class ProcessObject {

                private String name;

                /**
                 * 批次
                 */
                private Integer orderQuantity;

                /**
                 * 处理量
                 */
                private Double processQuantity;

                /**
                 * 货物量
                 */
                private Double goodsQuantity;

                private TreeMap<String, BigDecimal> medicationMap;

            }
        }
    }

}